from typing import Optional, Tuple

from django.db.models import QuerySet

from server.apps.main.logic.todo import commands


def run(
    checkedlist: list
) -> None:
    """Validates data, maybe creates a new post, returns all published ones."""
    commands.delete(checkedlist)